package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————课程教师类
 * @date 2019-12-17 15:20
 */
@Entity
@Table(name = "course_teacher")
public class CourseTeacher implements Serializable {

    private static final long serialVersionUID = -8837926253822673972L;

    @Id
    @GeneratedValue
    @Column(name = "course_teacher_Id")
    private Integer courseTeacherId;//课程教师ID

    @Column(name = "user_Id")
    private Integer userId;//用户ID

    @Column(name = "course_Id")
    private Integer courseId;//课程ID

    @Column(name = "comment", length = 255)
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public CourseTeacher() {
        //无参构造
    }


    public Integer getCourseTeacherId() {
        return courseTeacherId;
    }


    public void setCourseTeacherId(Integer courseTeacherId) {
        this.courseTeacherId = courseTeacherId;
    }


    public Integer getUserId() {
        return userId;
    }


    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public Integer getCourseId() {
        return courseId;
    }


    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }


    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "CourseTeacher [courseTeacherId=" + courseTeacherId + ", userId=" + userId + ", courseId=" + courseId
                + ", comment=" + comment + ", recordTime=" + recordTime + ", updateTime=" + updateTime + "]";
    }


}
